home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / tlx_sq15.zip / FONE.BAT < prev    next >
DOS Batch File  |  1991-01-15  |  1KB  |  65 lines

  1. @echo off
  2. :: MODIFY "tdisk" and "tdir" to fit your setup:
  3.  
  4. set bbsname=
  5. set tdisk=H
  6. set tdir=\telix
  7.  
  8. set test=AAAAAAAAAAAAAAAAAAAA
  9. if .%test%==.AAAAAAAAAAAAAAAAAAAA goto OK
  10.  
  11. set tdir=
  12. set tdisk=
  13. set test=4DOS
  14. if .%_CWD%==. set test=COMMAND
  15. cls
  16. echo Your system is out of environment space! You have two choices:
  17. echo 1. Remove one to three of your environment variables
  18. echo 2. Make environment larger for %test%.COM in your CONFIG.SYS file.
  19. echo :
  20. echo Example:
  21. if .%_CWD%==. echo shell=c:\COMMAND.COM /e:512 /p
  22. if not .%_CWD%==. echo shell=c:\4DOS.COM /e:1024 /s:dD: /p
  23. echo :
  24. echo and try again. Good luck!
  25. echo :
  26. goto end
  27.  
  28. :OK
  29. set test=
  30. set bbsname=%1%2%3%4%5%6%7%8%9
  31. set telix=%tdisk%:%tdir%
  32.  
  33. :; Test for 4dos/COMMAND.COM, and use the correct commands to
  34. :; switch to disc containing tdir.
  35. if .%_CWD%==. goto old1
  36.   pushd %telix%
  37.   goto new1
  38. :old1
  39.   PUSHDIR
  40.   %tdisk%:
  41.   cd %tdir%
  42. :new1
  43.  
  44. :; Enter the QuickDial script.
  45. :: The 'o' parameter skips modem initialize.
  46. telix o sqdial
  47. cls
  48. Echo Thanks for using Telix_Square!
  49.  
  50. :; Test for 4dos/COMMAND.COM, and use the correct commands to
  51. :; go back to original drive and directory.
  52. if .%_CWD%==. goto old2
  53.   popd
  54.   goto end
  55. :old2
  56.   POPDIR
  57.  
  58. :end
  59. :; Remove the environment variables used.
  60. set tdisk=
  61. set tdir=
  62. set telix=
  63. set bbsname=
  64. set sqrtime=
  65.